package com.gxa.controller;

import com.gxa.common.JsonResult;
import com.gxa.common.R;
import com.gxa.pojo.Dept;
import com.gxa.pojo.Employee;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.List;

@Controller
@Api(value = "直接查询部门",tags = "直接部门查询API接口" )
public class DeptSelectController {
    @RequestMapping(value = "/selectDept",method = RequestMethod.GET)
    @ResponseBody
    @ApiOperation(value = "部门查询",notes = "点击显示所有部门",httpMethod = "get",response = JsonResult.class)
    public JsonResult queryEmployeeList(Dept dept){
        JsonResult r =new JsonResult();
        Dept dept1 = new Dept();
        dept1.setDept_id(1);
        dept1.setDept_name("总经办");
        r.setCode(200);
        r.setMsg("查询成功");
        r.setData(dept1);
        return r;
    }
}
